
<br />
<div class="contentbox_headbar">
	<div class="left"></div>
	<div class="title"><img src="{$CMS_WEB_DIR}img/icon-page-add.png" alt="" border="0" />  Templates</div>
	<div class="right"></div>
	<div class="clear"></div>
</div>
	
<div class="contentbox_box">
	{assign var="bgcolor" value=""}
	{foreach name="tplloop" from=$templates item=tpl}
		{if ($bgcolor == "")}
			{assign var="bgcolor" value="background:#F0F0F0;"}
		{else}
			{assign var="bgcolor" value=""}
		{/if}
		<div style="padding:2px;{$bgcolor}">
			<div style="float:left;width:200px;">
			{$tpl.tpl_name|stripslashes|htmlentities}<br />
			</div>
			<div style="float:left;width:200px;">
					<input type="hidden" name="filetplfile{$tpl.tpl_id}" id="filetplfile{$tpl.tpl_id}" value="{$tpl.tpl_file}"/>
					<input type="hidden" name="dirtplfile{$tpl.tpl_id}" id="dirtplfile{$tpl.tpl_id}" value="{$tpl.tpl_dir}"/>
					<input type="hidden" name="tplfile{$tpl.tpl_id}" id="tplfile{$tpl.tpl_id}" value="{$content.selected}"/>
					<a href="javascript:void(0);" style="color:#E06C06;" onclick="FileManagerOpen('tplfile{$tpl.tpl_id}','tplfile{$tpl.tpl_id}','template','extensions');">
					<span id="labeltplfile{$tpl.tpl_id}">{$tpl.tpl_file}</span>
					</a>
			</div>
			<div style="float:left;width:200px;">
			{$tpl.class_name}
			</div>
			<br style="clear:both;" />
		</div>
	{/foreach}
</div>

<br />
<div class="contentbox_headbar">
	<div class="left"></div>
	<div class="title"><img src="{$CMS_WEB_DIR}img/icon-page-add.png" alt="" border="0" />  Neues Template anlegen</div>
	<div class="right"></div>
	<div class="clear"></div>
</div>
	
<div class="contentbox_box">
	<form name="addTplForm" id="addTplForm" onsubmit="return false;">
		<div style="float:left;width:100px">
			Name 
		</div>
		<div style="float:left;width:180px">
			<input type="text" name="addTplName" class="FormFieldText">
		</div>
		<div style="float:left;width:100px">
					<input type="hidden" name="project_id" id="project_id" value="{$project_id}" />
	
					<input type="hidden" name="filetplfileNEW" id="filetplfileNEW" value=""/>
					<input type="hidden" name="dirtplfileNEW" id="dirtplfileNEW" value=""/>
					<input type="hidden" name="tplfileNEW" id="tplfileNEW" value="{$content.selected}"/>
					<a href="javascript:void(0);" style="color:#E06C06;" onclick="FileManagerOpen('tplfileNEWXX','tplfileNEW','template','extensions');">
					<span id="labeltplfileNEW">Datei w&auml;hlen</span>
					</a>
		</div>
		<div style="float:left;width:100px">
			<input type="button" class="submitbtn" value="speichern" onclick="TemplateManagerSaveNew();" />
		</div>
		<br style="clear:both;" />
	</form>
</div>

<br /><br />